/* ==========================================
   TNP / Bare Minimum Brigade — Brand System
   ========================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette — derived from leaderboard */
  --bg:             #0e1a22;
  --surface:        #122030;
  --surface2:       #16293a;
  --surface3:       #1c3348;
  --border:         #1e3a50;
  --text:           #d9dcd6;
  --muted:          #81c3d7;
  --muted-dim:      #99c4d9;
  --accent:         #81c3d7;
  --accent-mid:     #3a7ca5;
  --accent-deep:    #2f6690;
  --accent-deepest: #16425b;
  --gold:           #f5c842;
  --silver:         #b0bec5;
  --bronze:         #cd8c4a;
  --radius:         10px;
  --radius-lg:      16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Fredoka, Georgia, 'Times New Roman', serif;
  min-height: 100vh;
  font-size: 17px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--muted-dim); }

/* ── NAV ── */
.site-nav {
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.nav-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-mid);
}

.nav-wordmark {
  font-family: Fredoka, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.nav-wordmark span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 0.35rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  display: block;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-color: var(--accent-deep);
  background: rgba(129, 195, 215, 0.06);
}

/* ── PAGE SHELL ── */
.page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.page-wrap--wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-mid);
  box-shadow: 0 0 0 6px rgba(58, 124, 165, 0.15), 0 0 40px rgba(129, 195, 215, 0.12);
}

.hero-eyebrow {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.hero h1 {
  font-family: Fredoka, sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
}

.hero h1 .accent { color: var(--accent); }

.hero-tagline {
  font-family: 'Courier New', monospace;
  font-size: 15px;
  color: var(--muted-dim);
  opacity: 0.85;
}

/* ── PILL LINKS ── */
.pill-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.pill {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid var(--accent-mid);
  color: var(--accent);
  background: rgba(129, 195, 215, 0.06);
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
}

.pill:hover {
  background: rgba(129, 195, 215, 0.15);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(129, 195, 215, 0.2);
}

/* ── TERMINAL BLOCK ── */
.terminal {
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  text-align: left;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.terminal-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red   { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-line { margin: 0.4rem 0; line-height: 1.6; }
.t-prompt { color: var(--accent); }
.t-output { color: var(--muted-dim); }
.t-cursor {
  display: inline-block;
  width: 9px;
  height: 17px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%  { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
  border-color: var(--accent-mid);
  transform: translateY(-3px);
}

.card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.card-label {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 0.35rem;
}
.card h2 {
  font-family: Fredoka, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-dim);
}
.card-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-deep);
  padding-bottom: 1px;
  transition: color 0.15s;
}
.card-link:hover { color: var(--text); border-bottom-color: var(--accent); }

/* ── SECTION LABEL ── */
.section-label {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── STAT PILLS ── */
.stats-bar {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.stat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--muted-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-pill strong { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .site-nav { padding: 0.65rem 1rem; gap: 0.75rem; }
  .nav-wordmark { font-size: 1rem; }
  .nav-links a { padding: 0.4rem 0.6rem; font-size: 12px; }
  .hero { padding: 2.5rem 0.5rem 2rem; }
  .hero h1 { font-size: 3rem; }
  .page-wrap { padding: 2rem 1rem 4rem; }
}
